﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/User.master" AutoEventWireup="true"
    CodeFile="Add.aspx.cs" Inherits="Movie_Add" Title="添加影片" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script src="../Scripts/selectFixer.js" type="text/javascript"></script>
<script src="../Scripts/inputSwitch.js" type="text/javascript"></script>
<style type="text/css">
.forms {
	width: auto;
	border-left: none;
}
.btn {
	width: 208px; /*FF*/
	*width: 210px; /*IE*/
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="Server">
<table border="0" cellpadding="0" cellspacing="0" class="clear_float">
          <tr>
            <td class="forms">
              <div class="title">添加影片</div>
              <form action="">
                &nbsp;&nbsp;&nbsp;IMDB&nbsp;&nbsp;ID
                <asp:TextBox ID="tbIMDB_ID" runat="server" CssClass="inputStyle01"></asp:TextBox>
                <span>*</span> 必填<br />
                &nbsp;&nbsp;&nbsp;中文片名
                <asp:TextBox ID="tbChineseName" runat="server" CssClass="inputStyle01"></asp:TextBox>
                <span>*</span> 未填写“英文片名”则必须填写<br />
                &nbsp;&nbsp;&nbsp;英文片名
                <asp:TextBox ID="tbEnglishName" runat="server" CssClass="inputStyle01"></asp:TextBox>
                <span>*</span> 未填写“中文片名”则必须填写<br />
                &nbsp;&nbsp;&nbsp;海报地址
                <asp:Image ID="iPostLink" runat="server" /><!--改成输入框-->
                <input name="" type="text" class="inputStyle01" />
                <br />
                &nbsp;&nbsp;&nbsp;上传海报
                <input name="" type="file" disabled="disabled" />
                仅支持小于 100Kb 的“jpg、gif”格式图片<br />
                &nbsp;&nbsp;&nbsp;国&nbsp;&nbsp;&nbsp;&nbsp;家
                <asp:CheckBoxList ID="cblNation" runat="server" RepeatColumns="4" DataValueField="EnglishName" DataTextField="Name"></asp:CheckBoxList><!--改成输入框-->
                <input name="" type="text" class="inputStyle01" />
                <span>*</span> 必填；填写多项用“,”隔开<br />
                &nbsp;&nbsp;&nbsp;导&nbsp;&nbsp;&nbsp;&nbsp;演
                <asp:TextBox ID="tbDirector" runat="server" CssClass="inputStyle01"></asp:TextBox>
                <span>*</span> 必填；填写多项用“,”隔开<br />
                &nbsp;&nbsp;&nbsp;主&nbsp;&nbsp;&nbsp;&nbsp;演
                <asp:TextBox ID="tbLeadingRule" runat="server" CssClass="inputStyle01"></asp:TextBox>
                填写多项用“,”隔开<br />
                &nbsp;&nbsp;&nbsp;类&nbsp;&nbsp;&nbsp;&nbsp;型
                <input name="" type="text" class="inputStyle01" />
                <span>*</span> 必填；填写多项用“,”隔开<br />
                &nbsp;&nbsp;&nbsp;时&nbsp;&nbsp;&nbsp;&nbsp;长
                <input name="" type="text" class="inputStyle01" />
                分钟<br />
                &nbsp;&nbsp;&nbsp;中文剧情
                <asp:TextBox ID="tbIntroduce" runat="server" TextMode="MultiLine"></asp:TextBox>
                <span>*</span> 必填<br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnAdd" runat="server" Text="加进去吧" OnClick="btnAdd_Click" CssClass="btn"></asp:Button><br />
              </form>
            </td>
          </tr>
        </table>
    <%--<table>
        <tr>
            <td>
                名称 ：
            </td>
            <td>
                <asp:TextBox ID="tbOriginalName" runat="server"></asp:TextBox><!--无-->
            </td>
        </tr>
        <tr>
            <td>
                港台译名 ：
            </td>
            <td>
                <asp:TextBox ID="tbHongkongName" runat="server"></asp:TextBox><!--无-->
            </td>
        </tr>
        <tr>
            <td>
                出品年份 ：
            </td>
            <td>
                <asp:TextBox ID="tbProduceYear" runat="server"></asp:TextBox><!--此处无-->
            </td>
        </tr>
        <tr>
            <td>
                奖项 ：
            </td>
            <td>
                <asp:TextBox ID="tbAwards" runat="server" Width="400px"></asp:TextBox><!--此处无-->
            </td>
        </tr>
        <tr>
            <td>创建者：</td>
            <td><asp:TextBox ID="tbUser" runat="server"></asp:TextBox><!--无，自动--></td>
        </tr>
    </table>--%>
    <table>
        <tr>
            <td>
                <asp:GridView ID="gvUri" border="0" align="center" CellPadding="0" CellSpacing="0"
                    runat="server" AutoGenerateColumns="False" PageSize="15" 
                    ShowHeader="false" onrowdatabound="gvUri_RowDataBound" 
                    onrowcommand="gvUri_RowCommand">
                    <EmptyDataTemplate>
                        <font style="color: red; font-weight: bold; font-size: larger;">无符合条件的记录</font>
                    </EmptyDataTemplate>
                    <RowStyle HorizontalAlign="Center" />
                    <Columns>
                        <asp:TemplateField HeaderText="下载地址">
                            <ItemTemplate>
                                <asp:TextBox ID="tbUri" runat="server" Text='<%#Eval("Uri")%>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发布时间">
                            <ItemTemplate>
                                <asp:Label ID="tbCreateTime" runat="server" Text='<%#Eval("CreateTime")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户">
                            <ItemTemplate>
                                by :
                                <asp:Label ID="tbUser" runat="server" Text='<%#Eval("UserName")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作" ItemStyle-Width="140px">
                            <ItemTemplate>
                                <asp:Button ID="btnEdit" runat="server" Text="保存" CommandName="btnEdit" Visible="true" CommandArgument='<%# Container.DataItemIndex %>' />
                                <asp:Button ID="btnDel" runat="server" Text="删除" CommandName="btnDel" CommandArgument='<%#Eval("ID")%>'
                                    OnClientClick="return window.confirm('您真的要删除吗？')" />
                                <asp:Button ID="btnAdd" runat="server" Text="新增" CommandName="btnAdd" Visible="false"
                                    CommandArgument='<%# Container.DataItemIndex %>' />
                                <asp:Label ID="lblID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
